const Router = require("koa-router");

const userRouter = new Router({ prefix: "/users" });

// 导入user控制对象
const { create } = require("../controller/user.controller");
// 导入user验证对象
const { verifyUser, handlePassword } = require("../middleware/user.middleware");

// 用户注册
userRouter.post("/", verifyUser, handlePassword, create);

module.exports = userRouter;
